<?php

/**
 * Generated Model class.
 */
class Base_GroupsRow extends Db_Row
{

    /**
     * Set new value for groups.id column in current Row.
     * 
     * @param int $IdFromGroupsRow
     * @return void
     */
    public function setId($Id)
    {
        $this->__set("id", $Id);
    }

    /**
     * Return groups.id column value in current Row.
     * 
     * @return int
     */
    public function getId()
    {
        return $this->__get("id");
    }

    /**
     * Set new value for groups.vk_id column in current Row.
     * 
     * @param int $VkIdFromGroupsRow
     * @return void
     */
    public function setVkId($VkId)
    {
        $this->__set("vk_id", $VkId);
    }

    /**
     * Return groups.vk_id column value in current Row.
     * 
     * @return int
     */
    public function getVkId()
    {
        return $this->__get("vk_id");
    }

    /**
     * Set new value for groups.name column in current Row.
     * 
     * @param varchar $NameFromGroupsRow
     * @return void
     */
    public function setName($Name)
    {
        $this->__set("name", $Name);
    }

    /**
     * Return groups.name column value in current Row.
     * 
     * @return varchar
     */
    public function getName()
    {
        return $this->__get("name");
    }

    /**
     * Set new value for groups.url column in current Row.
     * 
     * @param varchar $UrlFromGroupsRow
     * @return void
     */
    public function setUrl($Url)
    {
        $this->__set("url", $Url);
    }

    /**
     * Return groups.url column value in current Row.
     * 
     * @return varchar
     */
    public function getUrl()
    {
        return $this->__get("url");
    }

    /**
     * Set new value for groups.photo_big column in current Row.
     * 
     * @param varchar $PhotoBigFromGroupsRow
     * @return void
     */
    public function setPhotoBig($PhotoBig)
    {
        $this->__set("photo_big", $PhotoBig);
    }

    /**
     * Return groups.photo_big column value in current Row.
     * 
     * @return varchar
     */
    public function getPhotoBig()
    {
        return $this->__get("photo_big");
    }

    /**
     * Set new value for groups.photo_medium column in current Row.
     * 
     * @param varchar $PhotoMediumFromGroupsRow
     * @return void
     */
    public function setPhotoMedium($PhotoMedium)
    {
        $this->__set("photo_medium", $PhotoMedium);
    }

    /**
     * Return groups.photo_medium column value in current Row.
     * 
     * @return varchar
     */
    public function getPhotoMedium()
    {
        return $this->__get("photo_medium");
    }

    /**
     * Set new value for groups.photo_small column in current Row.
     * 
     * @param varchar $PhotoSmallFromGroupsRow
     * @return void
     */
    public function setPhotoSmall($PhotoSmall)
    {
        $this->__set("photo_small", $PhotoSmall);
    }

    /**
     * Return groups.photo_small column value in current Row.
     * 
     * @return varchar
     */
    public function getPhotoSmall()
    {
        return $this->__get("photo_small");
    }

    /**
     * Set new value for groups.members_count column in current Row.
     * 
     * @param int $MembersCountFromGroupsRow
     * @return void
     */
    public function setMembersCount($MembersCount)
    {
        $this->__set("members_count", $MembersCount);
    }

    /**
     * Return groups.members_count column value in current Row.
     * 
     * @return int
     */
    public function getMembersCount()
    {
        return $this->__get("members_count");
    }

    /**
     * Set new value for groups.antispam_wall column in current Row.
     * 
     * @param tinyint $AntispamWallFromGroupsRow
     * @return void
     */
    public function setAntispamWall($AntispamWall)
    {
        $this->__set("antispam_wall", $AntispamWall);
    }

    /**
     * Return groups.antispam_wall column value in current Row.
     * 
     * @return tinyint
     */
    public function getAntispamWall()
    {
        return $this->__get("antispam_wall");
    }

    /**
     * Set new value for groups.created_at column in current Row.
     * 
     * @param datetime $CreatedAtFromGroupsRow
     * @return void
     */
    public function setCreatedAt($CreatedAt)
    {
        $this->__set("created_at", $CreatedAt);
    }

    /**
     * Return groups.created_at column value in current Row.
     * 
     * @return datetime
     */
    public function getCreatedAt()
    {
        return $this->__get("created_at");
    }

    /**
     * Set new value for groups.modified_at column in current Row.
     * 
     * @param timestamp $ModifiedAtFromGroupsRow
     * @return void
     */
    public function setModifiedAt($ModifiedAt)
    {
        $this->__set("modified_at", $ModifiedAt);
    }

    /**
     * Return groups.modified_at column value in current Row.
     * 
     * @return timestamp
     */
    public function getModifiedAt()
    {
        return $this->__get("modified_at");
    }

    /**
     * Return dependent rowset from table Turn where Turn.GroupId reference to groups
     * table
     * 
     * @param Db_Select $select FromTurn
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getTurnRowsetByGroupId($select = null)
    {
        return $this->findDependentRowset('TurnPeer', null, $select);
    }

    /**
     * Return dependent rowset from table User2group where User2group.GroupId reference
     * to groups table
     * 
     * @param Db_Select $select FromUser2group
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getUser2groupRowsetByGroupId($select = null)
    {
        return $this->findDependentRowset('User2groupPeer', null, $select);
    }

    /**
     * Return many2many rowset from table User via User2group
     * 
     * @param Db_Select $select From User
     * @return Zend_Db_Table_Rowset_Abstract
     */
    public function getUserRowsetByUser2group($select = null)
    {
        return $this->findManyToManyRowset(UserPeer::getInstance(), User2groupPeer::getInstance(), null, null, $select);
    }


}

